package com.dymall.common.api;

import com.dymall.common.domain.dto.CheckoutReqDTO;
import com.dymall.common.domain.dto.CheckoutRespDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("checkout-service")
public interface CheckoutClient {
    @PostMapping("/checkout")
    CheckoutRespDTO Checkout(@RequestBody CheckoutReqDTO checkoutReqDTO);
}
